package com.imay.videorecord.architecture;

import com.imay.videorecord.RecordException;

/**
 * Created by Administrator on 2016/12/27.
 */
public interface TextureMovie extends Runnable{
    interface OnRecordListener {
        void onRecording();

        void onRecorded();

        void onRecordPaused();

        void onRecordCanceled();

        void onRecordFailed(RecordException de);
    }

    void pause();

    void cancel();

    boolean isRecording();

    boolean isRecorded();

    boolean isPaused();

    boolean isCanceled();

    boolean isFailed();

    @Override
    void run();
}
